<template>
  <div style="margin:20px">
    <a-card :title="$t('table')">
      <Table
        size="small"
        :tableLoading="loading"
        :dataSource="data"
        :columns="columns"
        :total="total"
        @queryData="getDatas"
        @select="select"
        pk="oreId"
      />
    </a-card>
  </div>
</template>

<script>
import Table from '../../components/publiccomponent/Table.vue'
export default {
  components: {
    Table
  },
  data () {
    return {
      columns: [
        {
          title: '物料编号',
          dataIndex: 'oreId',
          align: 'center',
          width: 70
        },
        {
          title: '物料名称',
          dataIndex: 'oreName',
          align: 'center',
          width: 70
        },
        {
          title: '物料批次',
          dataIndex: 'oreBatch',
          align: 'center',
          width: 70
        },
        {
          title: '库存量(t)',
          dataIndex: 'oreAmount',
          align: 'center',
          width: 60
        },
        {
          title: '数量',
          dataIndex: 'orenum',
          align: 'center',
          width: 60
        }
      ],
      total: 54,
      loading: false,
      data: [
        {
          oreId: '12',
          oreName: '12',
          oreBatch: '12',
          oreAmount: '32',
          orenum: '23'
        },
        {
          oreId: '13',
          oreName: '12',
          oreBatch: '12',
          oreAmount: '32',
          orenum: '23'
        },
        {
          oreId: '14',
          oreName: '12',
          oreBatch: '12',
          oreAmount: '32',
          orenum: '23'
        }
      ],
      table: '' // 测试国际化
    }
  },
  created () {
  },
  methods: {
    select (e) {
      // 选中
    },
    getDatas (pages) {
      // 页码跳转
    }
  }
}
</script>

<style>
</style>
